home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
CLPMOUSE.ARJ
/
DEMO.PRG
< prev
next >
Wrap
Text File
|
1991-01-21
|
3KB
|
117 lines
* Demonstration of clipper Windows *
* Public Domain
****
**** PUBLIC DECLARATION
****
public SYDAT,COLOR1,COLOR2,COLOR3,COLOR4,COLOR5,COLOR6,COLOR7,COLOR8,COLOR9,COLORA
public ESCP
color1 = "0 +/77/03/30/60/6"
color2 = "7 +/1"
color3 = "2 +/4"
color4 = "2 +/0"
color5 = "3 +/6"
color6 = "3 +/5"
color7 = "7 +/0"
color8 = "0 /3"
color9 = "6 +/4"
colorA = "W+ /N"
sydat = date()
@ 24,70 say SYDAT
set color to (colorA)
WININIT("WINFIL.WIN",.T.)
WINBACK(chr(177))
setcursor(0)
sysrun = .t.
do while sysrun
setcolor(color1)
DEMOS()
enddo
winclose() /* that background screen ! */
WINDONE()
setcursor(1)
return
FUNCTION DEMOS
fast = .f.
a = 3
b = 3
c = 5
d = 30
m = 1
for x = 1 to 3
if m > 9
m = 1
endif
nvar = "COLOR"+alltrim(str(m))
nvar = &nvar
setcolor(nvar)
arr = {"TEST","OF","THE","ARRAY"}
winopen(a,b,3,3,fast,alltrim(str(x)),nvar)
sizecnt1 = 3
sizecnt2 = 3
do while sizecnt1 < c .or. sizecnt2 < d
do case
case sizecnt1 < c .and. sizecnt2 < d
sizecnt1 = sizecnt1+1
sizecnt2 = sizecnt2+1
winsize(1,1) /* default omitted, so its true */
case sizecnt1 < c .and. sizecnt2 = d
sizecnt1 = sizecnt1+1
winsize(1,0,.T.)
case sizecnt1 = c .and. sizecnt2 < d
sizecnt2 = sizecnt2+1
winsize(0,1)
endcase
enddo
ret = winachoice("arr,.t.")
winsay(1,1,ret)
winopen(a,b,c,d,fast,alltrim(str(x)),nvar)
winsay(1,1,-1.22*(a+b+c+d),"@)")
winsay(2,2,"This is the SECOND LINE")
winsay(3,3,"This is the THIRD LINE")
winsay(4,4,"This is the FOURTH LINE")
first_time = .t.
o = 0
for n = 1 to 5 step 2
winmove(n,o)
wincolor(n+8)
if first_time
winmoveto(15,75,8)
winsize(-2,-3,.t.)
first_time = .f.
endif
xxx = inkey(2)
o = o+1
next
a = a+2
b = b+3
c = c+2
d = d+3
m = m+1
next
for x = 1 to 6
winclose()
inkey(2)
next
win_sgraph(0,0,1,color5,5,5,10,"Small")
for x = 1 to 100
win_sgraph(100,x,2,color5)
next
win_sgraph(0,0,1,color6,10,15,30,"Medium")
for x = 1 to 200
win_sgraph(300,x,2,color6)
next
win_sgraph(0,0,1,color1,15,2,70,"Large")
for x = 1 to 300
win_sgraph(600,x,2,color1)
next
win_sgraph(0,0,3) // Graphs are windows, so they can be stored
winclose(wintotal()-1)
sysrun = .f.
return(NIL)